<?php echo Modules::run('admin/header'); ?>

<!-- start content-outer -->
<div id="content-outer">
<!-- start content -->
<div id="content">


<div id="page-heading"><h1><?php echo $title; ?></h1></div>


<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
<tr>
	<th rowspan="3" class="sized"><img src="<?php echo base_url('images/shared/side_shadowleft.jpg') ?>" width="20" height="300" alt="" /></th>
	<th class="topleft"></th>
	<td id="tbl-border-top">&nbsp;</td>
	<th class="topright"></th>
	<th rowspan="3" class="sized"><img src="<?php echo base_url('images/shared/side_shadowright.jpg') ?>" width="20" height="300" alt="" /></th>
</tr>
<tr>
	<td id="tbl-border-left"></td>
	<td>
	<!--  start content-table-inner -->
	<div id="content-table-inner">
	
	<table border="0" width="100%" cellpadding="0" cellspacing="0">
	<tr valign="top">
	<td>					
		<!-- start id-form -->
                <?php echo form_open_multipart('admin/editNew/'. $type .'/'. $new_id) ?>
		<table border="0" cellpadding="0" cellspacing="0"  id="id-form">
		<tr>
			<th valign="top">Tiêu đề:</th>
			<td><input type="text" class="inp-form" name="title" value="<?php echo $new['title'] ?>" /></td>
			<td></td>
		</tr>		
		<tr>
			<th valign="top">Nội dung:</th>
			<td><textarea id="editor1" rows="" cols="" class="form-textarea" name="detail"><?php echo $new['detail'] ?></textarea></td>
			<td></td>
			<script type="text/javascript">
			//<![CDATA[

				CKEDITOR.replace( 'editor1',
					{
						fullPage : true,
						extraPlugins : 'docprops'
					});

			//]]>
		</script>
		</tr>
		<tr>
			<th>Tập tin hiện tại:</th>
			<td><a href="<?php echo base_url('uploads/company/report/'.$new['upload']) ?>"><img src="<?php echo base_url('images/'.$new['filetype']) ?>" /></a</td>		
		</tr>
		<tr>
			<th valign="top">Upload:</th>
			<td><input type="file" class="file_1" name="upload"/></td>
			<td></td>
		</tr>
                <tr>
                    <th></th>
                    <td><input type="hidden" name="p" value="submit"</td>
                </tr>
		<tr>
			<th>&nbsp;</th>
			<td valign="top">
				<input type="submit" value="submit" name="submitBtn"  class="form-submit" />
				<input type="reset" value="" class="form-reset"  />
			</td>
			<td></td>
		</tr>
                </table>
                </form>
                <!-- end id-form  -->

	</td>
	<td>
</td>
</tr>
<tr>
<td><img src="<?php echo base_url('images/shared/blank.gif') ?>" width="695" height="1" alt="blank" /></td>
<td></td>
</tr>
</table>
 
<div class="clear"></div>
 

</div>
<!--  end content-table-inner  -->
</td>
<td id="tbl-border-right"></td>
</tr>
<tr>
	<th class="sized bottomleft"></th>
	<td id="tbl-border-bottom">&nbsp;</td>
	<th class="sized bottomright"></th>
</tr>
</table>









 





<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>

<?php echo Modules::run('admin/footer'); ?>